﻿using System.Runtime;

namespace System.Reflection
{
    [NonScript]
    public struct CustomAttributeNamedArgument
    {
        public MemberInfo MemberInfo
        {
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            get { return null; }
        }

        public CustomAttributeTypedArgument TypedValue
        {
            [TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]
            get { return new CustomAttributeTypedArgument(); }
        }

        public static bool operator ==(CustomAttributeNamedArgument left, CustomAttributeNamedArgument right)
        {
            return left.Equals(right);
        }

        public static bool operator !=(CustomAttributeNamedArgument left, CustomAttributeNamedArgument right)
        {
            return !left.Equals(right);
        }

        public CustomAttributeNamedArgument(MemberInfo memberInfo, object value)
        {
        }

        public CustomAttributeNamedArgument(MemberInfo memberInfo, CustomAttributeTypedArgument typedArgument)
        {
        }

        public override int GetHashCode()
        {
            return base.GetHashCode();
        }

        public override bool Equals(object that)
        {
            return base.Equals(that);
        }
    }
}
